package com.lq.springai.service;

import com.lq.springai.entity.ChatRequest;
import com.lq.springai.entity.ModelParams;
import org.springframework.http.codec.ServerSentEvent;
import reactor.core.publisher.Flux;

import java.util.List;

/**
 * * Author 30783
 * * Data：2025/6/26 13:50
 */
public interface ModelService {

    /**
     * 请求大模型统一入口
     * @param chatRequest
     * @return
     */
    Flux<ServerSentEvent<String>> aiModel(ChatRequest chatRequest);

    /**
     * 大模型列表
     * @return
     */
    List<ModelParams> modelList();

}
